<style>
.dd-list .dd-list{padding-left:20px;}
.dd-list>li{list-style-type: cjk-ideographic;line-height: 2em;}
.dd-list .dd-list > li{list-style-type: decimal;line-height: 1.75em;}
.dd-list .dd-list .dd-list > li{list-style-type: lower-alpha;}
</style>
<div class="container">
<div class="row">
	<div class="ui-contain col-md-8">
		<portlet portlet="notitle">
				    <h3 class="Content-title"><?php echo $chapter['BookChapter']['name']; ?></h3>
				    <div class="Content-info">
				阅读次数： <span class="ui-stats-num" id="Stats-BookChapter-{{$chapter['BookChapter']['id']}}-view_nums"><?php echo $chapter['BookChapter']['view_nums']; ?></span>
				    </div>
				<div class="Content-body">
				    	<?php echo $this->TplParse->executePortlet($chapter['BookChapter']['content']); ?>
				    	
				    	{{if $chapter['BookChapter']['remoteurl']}}
				    	<p>原文链接：<a href="{{$chapter['BookChapter']['remoteurl']}}" style="font-size: 12px;" target="_blank">{{$chapter['BookChapter']['remoteurl']}}</a></p>
				    	{{/if}}
				    
			        {{$this->Hook->call("affterContent",array('BookChapter',$chapter['BookChapter']['id']))}}
				</div>
				<div id="dialog-share" style="display:none;" title="温馨提示">
					<div class="ui-pop-tips"><span class="ico ico-success" style="float:left;"></span><div class="tips-cnt">发表观点成功，是否也分享给您的好友？</div></div>
				</div>
		</portlet>
		
<!-- 包含下级时，显示下级章节的目录  -->		
		{{if $chapter['BookChapter']['left']!=$chapter['BookChapter']['right'] - 1 }}
			
{{$this->Section->getLeftMenu('BookChapter',array(
	'conditions'=> array('BookChapter.book_id'=>$book_id,'BookChapter.published'=>1,'BookChapter.left >'=>$chapter['BookChapter']['left'],'BookChapter.right <'=>$chapter['BookChapter']['right']),
	'outtag'=>'ul',
	'dropdownClass'=>'',
	'url'=>'/books/chapter/'.$book_id.'/{id}',
	'separator' => '',
	'ulAttributes' => array('class' => ''),
	'liAttributes' => array(),
	'data-toggle' => '',
))}}

		
		{{/if}}
	</div>
	
	<div class="ui-contain col-md-4">
		<portlet title="《{{$Book['Book']['name']}}》目录">
			
			{{$this->Section->getLeftMenu('BookChapter',array('conditions'=> array('BookChapter.book_id'=>$book_id,'BookChapter.published'=>1),'outtag'=>'ol',
	'dropdownClass'=>'dd-list',
	'url'=>'/books/chapter/'.$book_id.'/{id}',
	'maxdepth' => 3,
	'separator' => '',
	'ulAttributes' => array('class' => 'dd-list'),
	'liAttributes' => array(),
	'linkAttributes1' => array('link' => 'javascript:void(0)'),
	'data-toggle' => '',
))}}
		</portlet>
	</div>
</div>
</div>
